﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.ComponentModel;

public partial class Control_ddlGVPageSizeSelect : System.Web.UI.UserControl
{

    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    /// <summary>
    /// 取回所選的PageSize
    /// </summary>
    /// <returns></returns>
    public int GetSelectPageSize()
    {
        int result = 0;
        foreach (ListItem itm in ddl_pageSize.Items)
        {
            if (itm.Selected == true)
            {
                result = Convert.ToInt16(itm.Value) ;
            }
        }
        return result;
    }
}
